//
//  MessageModel.h
//  糗百——王桂敏
//
//  Created by 王桂敏 on 15/5/25.
//  Copyright (c) 2015年 lanouhn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "UserModel.h"
@interface MessageModel : NSObject<NSCopying>//如果一个自定义类的对象要支持归档，则需要遵守NSCoding协议，并实现编码和解码协议
//----------------纯文的属性---------------------------------
@property (nonatomic,copy) NSString *message_id;//消息id
@property (nonatomic,retain) NSString *content;//消息内容
//@property (nonatomic,retain) NSString *published_at;//发布时间
@property (nonatomic,retain) UserModel *user;//用户信息
@property (nonatomic,retain) NSDictionary *votes;//点赞的统计信息
@property (nonatomic,retain) NSNumber *comments_count;//评论的个数
@property (nonatomic,retain) NSString *detail_url;//详情接口
//----------------纯图、最新和精华的属性-----------------------
@property (nonatomic,retain) NSString *image;//发布的图片
@property (nonatomic,retain) NSDictionary *image_size;//图片大小
//----------------视频的属性---------------------------------
@property (nonatomic,retain) NSString *low_url;//视频链接
@property (nonatomic,retain) NSString *pic_url;//视频加载时的占位图片
@property (nonatomic,retain) NSArray *pic_size;//视频占位图片的大小

@property (nonatomic,assign) CGFloat rowHeight;//最终行高
@property (nonatomic,assign) CGRect contentRect;//文字内容高度
//-----------------初始化方法---------------------------------
- (id)initWithDictionary:(NSDictionary *)dictionary;
@end
